package com.goodving.guli.bt;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.goodving.guli.R;
import com.goodving.guli.view.C4220a;

/**
 * Created by john on 2015/11/26.
 */
public class ProgressDimFragment extends DimPanelFragment { // ProgressDimFragment
    protected int inflateLayout() {
        return R.layout.fragment_progress_bar;
    }

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
    }

    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        View onCreateView = super.onCreateView(layoutInflater, viewGroup, bundle);
        Bundle arguments = getArguments();
        TextView textView = (TextView) onCreateView.findViewById(R.id.progress_txt);
        if (arguments != null) {
            CharSequence string = arguments.getString(C4220a.bA, "...");
            boolean z = arguments.getBoolean(C4220a.bB, true);
            textView.setText(string);
            setCancelable(z);
        }
        return onCreateView;
    }
}
